home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / DB.PAK / DB.ODL < prev    next >
Text File  |  1997-05-06  |  2KB  |  83 lines

  1. // db.odl : type library source for OLE Custom Control project.
  2.  
  3. // This file will be processed by the Make Type Library (mktyplib) tool to
  4. // produce the type library (db.tlb) that will become a resource in
  5. // db.ocx.
  6.  
  7. // This is a part of the Microsoft Foundation Classes C++ library.
  8. // Copyright (C) 1992-1995 Microsoft Corporation
  9. // All rights reserved.
  10. //
  11. // This source code is only intended as a supplement to the
  12. // Microsoft Foundation Classes Reference and the
  13. // Books Online documentation provided with the library.
  14. // See these sources for detailed information regarding the
  15. // Microsoft Foundation Classes product.
  16.  
  17. #include <olectl.h>
  18.  
  19. [ uuid(EFF01748-7825-101B-8375-00AA00373FB9), version(1.0),
  20.   helpstring("Db OLE Custom Control module"), control ]
  21. library DbLib
  22. {
  23.     importlib(STDOLE_TLB);
  24.     importlib(STDTYPE_TLB);
  25.     
  26.     //  Primary dispatch interface for CDbCtrl
  27.     
  28.     [ uuid(EFF01746-7825-101B-8375-00AA00373FB9),
  29.       helpstring("Dispatch interface for Db Control"), hidden ]
  30.     dispinterface _DDb
  31.     {
  32.         properties:
  33.             // NOTE - ClassWizard will maintain property information here.
  34.             //    Use extreme caution when editing this section.
  35.             //{{AFX_ODL_PROP(CDbCtrl)
  36.             [id(2)] BSTR DataSource;
  37.             [id(3)] BSTR TableName;
  38.             [id(4)] BSTR ColumnName;
  39.             [id(5)] BSTR UserName;
  40.             [id(6)] BSTR Password;
  41.             [id(1)] BSTR Query;
  42.             //}}AFX_ODL_PROP
  43.             
  44.         methods:
  45.             // NOTE - ClassWizard will maintain method information here.
  46.             //    Use extreme caution when editing this section.
  47.             //{{AFX_ODL_METHOD(CDbCtrl)
  48.             [id(7)] void ReQuery();
  49.             //}}AFX_ODL_METHOD
  50.  
  51.             [id(DISPID_ABOUTBOX)] void AboutBox();
  52.     };
  53.  
  54.     //  Event dispatch interface for CDbCtrl
  55.     
  56.     [ uuid(EFF01747-7825-101B-8375-00AA00373FB9),
  57.       helpstring("Event interface for Db Control") ]
  58.     dispinterface _DDbEvents
  59.     {
  60.         properties:
  61.             //  Event interface has no properties
  62.             
  63.         methods:
  64.             // NOTE - ClassWizard will maintain event information here.
  65.             //    Use extreme caution when editing this section.
  66.             //{{AFX_ODL_EVENT(CDbCtrl)
  67.             //}}AFX_ODL_EVENT
  68.     };
  69.  
  70.     //  Class information for CDbCtrl
  71.     
  72.     [ uuid(EFF01745-7825-101B-8375-00AA00373FB9),
  73.       helpstring("Db Control"), control ]
  74.     coclass Db
  75.     {
  76.         [default] dispinterface _DDb;
  77.         [default, source] dispinterface _DDbEvents;
  78.     };
  79.  
  80.  
  81.     //{{AFX_APPEND_ODL}}
  82. };
  83.